@Istest
public class OpportunityAmountTriggerTestClass {
	@IsTest 
    static void updateOpportunityAmount() {
        
        // 新建一个客户
        Account account = new Account(name = 'Admin1');
        // 插入客户
		insert account;
        // 打印日志（输出客户上的商机金额）
        System.debug('1-客户上的商机金额：' + account.Business_opportunity_amount__c);
        // 新建一个业务机会
        Opportunity opp = new Opportunity(Name='Admin2', AccountId = account.Id, Amount = 100,StageName='Closed Won');
        // insert
        insert opp;
        
        account = [SELECT Business_opportunity_amount__c FROM Account WHERE Id =:account.Id];
        // 打印日志（输出客户上的商机金额）
        System.debug('2-客户上的商机金额：' + account.Business_opportunity_amount__c);

    }
}